package com.heima.Stringbuild的基本操作;

public class ToString {
    public static void main(String[] args) {
        StringBuilder sb=new StringBuilder();
        sb.append("abc");
        sb.append("def");
        sb.append("ghi");
        sb.append("jkl");
        sb.append("mno");
        System.out.println(sb);
        //把StringBuilder转换为String
        String s=sb.toString();
        System.out.println(s);
    }
}
